#include "rf.h"

#include <QtCore>
#include <QtGui>
#include <QtNetwork>

#include "httpwindow.h"

RF::RF( QObject * parent )
//  : QObject( parent )
{
    checkRemoteStartTime();
}

RF::~RF()
{
}


void  RF::setServerStart( QTime time )
{
    serverStart = time;
}

QTime RF::getServerStart()
{
    return serverStart;
}

QTime RF::timeToNextCW()
{
}

bool RF::checkRemoteStartTime()
{
    QString addr = QString( "%1%2" ).arg( BASE_APP_URL ).arg( REMOTE_SERVERSTART );
    HttpDownload http( &addr );
    http.downloadFile();
}
